package br.com.felinelayer.server.application;

import br.com.felinelayer.common.Protocol;

/**
 *
 * @author Vanius Roberto Bittencourt
 */
public class LabelServer extends ComponentServer<LabelServer> {
    private ComponentServer componentServer;

    @Override
    public String getComponentClassName() {
        return Protocol.COMPONENT_LABEL;
    }
    
    public LabelServer setAnchorLeft(ComponentServer componentServer) {
        this.componentServer = componentServer;
        firePropertyChange( Protocol.PROPERTY_ANCHOR_LEFT, componentServer.getId() );
        return (LabelServer) this;
    }
    
    public LabelServer setAnchorTop(ComponentServer componentServer) {
        this.componentServer = componentServer;
        firePropertyChange( Protocol.PROPERTY_ANCHOR_TOP, componentServer.getId() );
        return (LabelServer) this;
    }
}
